define(() => {
    return function (goods) {
        const arr = goods.filter(val => {
            return !val.check;
        })
        localStorage.setItem("goods", JSON.stringify(arr));
        return arr;
    }
});